#pragma once
#include<iostream>
using namespace std;
#include<functional>

//int fun(int,int)

class Task{
public:
    typedef function<int(int,int)> fun_t;
    Task(){

    }
    Task(int x,int y,fun_t func):_x(x),_y(y),_func(func){

    }

    //仿函数
    int operator()(){
        int ret = _func(_x,_y);
        return ret;
    }

    ~Task(){

    }

private:
    int _x;
    int _y;
    fun_t _func;
};